package com.yuyang.wifi.utils;

import android.view.View;

public class ButtonLimitClickUtils {


    public static void setLimitClick(final View view) {
        view.setEnabled(false);
        new android.os.Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                view.setEnabled(true);
            }
        }, 2000);
    }


    public static void setLimitUploadClick(final View view) {
        view.setEnabled(false);
        new android.os.Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                view.setEnabled(true);
            }
        }, 10000);
    }
}
